﻿/****************************** Module Header ******************************\
 * Module Name:  tOrderDelivery.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 订单-配送管理-配送 数据实体类
	/// </summary>
    [DBTable(Common = "订单-配送管理-配送")]
	public class tOrderDelivery
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
		private Guid? _ID;

		/// <summary>
        /// 配送名称
		/// </summary>
		public string Name { get { return _Name; } set { _Name = value; } }

        [DBColumn(Alias = "配送名称", Length = "32")]
		private string _Name;

		/// <summary>
        /// 物流公司Guid编号
		/// </summary>
		public Guid LogisticsID { get { return _LogisticsID ?? default(Guid); } set { _LogisticsID = value; } }

        [DBColumn(Alias = "物流公司Guid编号", CanBeNull = true)]
		private Guid? _LogisticsID;

		/// <summary>
        /// 物流类型(三个值可选：POST(平邮)、EXPRESS(快递)、EMS(EMS))
		/// </summary>
		public string TransportType { get { return _TransportType; } set { _TransportType = value; } }

        [DBColumn(Alias = "物流类型", CanBeNull = true, Length = "16")]
		private string _TransportType;

		/// <summary>
        /// 收款方式(0=货到付款,1=款到发货)
		/// </summary>
		public int PaymentMethod { get { return _PaymentMethod ?? default(int); } set { _PaymentMethod = value; } }

        [DBColumn(Alias = "收款方式", CanBeNull = true)]
		private int? _PaymentMethod;

		/// <summary>
        /// 首重重量
		/// </summary>
		public int FirstWeight { get { return _FirstWeight ?? default(int); } set { _FirstWeight = value; } }

        [DBColumn(Alias = "首重重量", CanBeNull = true)]
		private int? _FirstWeight;

		/// <summary>
        /// 续重重量
		/// </summary>
		public int AdditionalWeight { get { return _AdditionalWeight ?? default(int); } set { _AdditionalWeight = value; } }

        [DBColumn(Alias = "续重重量", CanBeNull = true)]
		private int? _AdditionalWeight;

		/// <summary>
        /// 首重费用
		/// </summary>
		public decimal FirstCost { get { return _FirstCost ?? default(decimal); } set { _FirstCost = value; } }

        [DBColumn(Alias = "首重费用", CanBeNull = true)]
		private decimal? _FirstCost;

		/// <summary>
        /// 续重费用
		/// </summary>
		public decimal AdditionalCost { get { return _AdditionalCost ?? default(decimal); } set { _AdditionalCost = value; } }

        [DBColumn(Alias = "续重费用", CanBeNull = true)]
		private decimal? _AdditionalCost;

		/// <summary>
        /// 是否统一配送地区费用
		/// </summary>
		public bool IsUniformCost { get { return _IsUniformCost ?? default(bool); } set { _IsUniformCost = value; } }

        [DBColumn(Alias = "是否统一配送地区费用", CanBeNull = true)]
		private bool? _IsUniformCost;

		/// <summary>
        /// 订单查询网址
		/// </summary>
		public string SearchUrl { get { return _SearchUrl; } set { _SearchUrl = value; } }

        [DBColumn(Alias = "订单查询网址", CanBeNull = true, Length = "255")]
		private string _SearchUrl;

		/// <summary>
        /// 配送方式描述
		/// </summary>
		public string Description { get { return _Description; } set { _Description = value; } }

        [DBColumn(Alias = "配送方式描述", CanBeNull = true, Length = "Max")]
		private string _Description;

		/// <summary>
		/// 扩展标签
		/// </summary>
		public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

		[DBColumn(Alias="扩展标签", Length="16")]
		private string _ExTags;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", DefaultValue="999")]
		private short? _Ordinal;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedDate { get { return _ModifiedDate ?? default(DateTime); } set { _ModifiedDate = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedDate;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
